package com.gin.kotlin.gf2gamecommunity.pagingsource

import com.gin.kotlin.enums.MessageType
import com.gin.kotlin.gf2gamecommunity.app.App
import com.gin.kotlin.response.message.Message
import com.gin.kotlin.response.message.MsgListData

class MessageListPagingData(private val type: MessageType) : AbstractListDataPagingSource<Message, MsgListData>() {
    override fun request(page: Int, size: Int) = App.INSTANCE.api.messageApi.getList(type, page, size)

    companion object {
        private val TAG = MessageListPagingData::class.java.simpleName
    }
}